<%@ page language="java" pageEncoding="utf-8"%>
<%@ include file="init.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>成龙网-修改密码</title>
		<meta name="keywords" content="教员申请记录" />
		<meta name="author" content="成龙网" />
		<meta name="copyright" content="成龙网" />

		<script language="JavaScript">
function CheckValue(pass)
{
	if(document.pass.old_pass.value =="")
	{
		alert("对不起,原密码不能为空!");
		document.pass.old_pass.focus();
		return (false);
	}
	
	if(document.pass.old_pass.value !='${teacher.password}')
	{
		alert("对不起,原密码不正确!");
		document.pass.old_pass.focus();
		return (false);
	}
	
	if(document.pass.new_password.value=="")
	{
		alert("对不起,新密码不能为空!");
		document.pass.new_password.focus();
		return (false);
	}
	
	if(document.pass.renew_password.value=="")
	{
		alert("对不起,重复新密码不能为空!");
		document.pass.renew_password.focus();
		return (false);
	}
	
	if(document.pass.new_password.value != document.pass.renew_password.value)
	{
		alert("对不起,两次输入的密码不相等!");
		document.pass.new_password.focus();
		return (false);
	}
	
	return (true);
}
</script>
	<body>
		<jsp:include page="../top.jsp" />
		<div class="main ZXmainbg clearfix">
			<div class="jyleft">
				<jsp:include page="tc_nav.jsp" />
			</div>


			<div class="jyright">
				<div class="jyt1">
					<a href="${ctx }/teacher/manage.action?id=${teacher.id}"><img
							src="${ctx}/common/image/d05.gif" width="10" height="11" />
						教员管理系统</a>
				</div>

				<div class="nr">
					欢迎您
					<span class="jyred"> ${teacher.username } </span>，您的教员编号是
					<span class="jyred"> ${teacher.id } </span>。
					<br />
					为了保证您的个人资料不被窃取或修改，请务必在离开时退出并关闭浏览器窗口！
				</div>
			</div>
			<div class="jyxx">

				<form action="${ctx }/teacher/manage!changePassword.action"
					method="POST" name="pass" id="pass"
					onSubmit="return CheckValue(this)">
					<input type="hidden" name="id" value="${teacher.id }" />
					<table class="border00" width="700" height="43" border="0"
						cellpadding="0" cellspacing="0">

						<tr>
							<td height="30" align="center" valign="middle">
								原来的密码：
								<input name="old_pass" id="old_pass" type="password"
									class="zcinput" />
							</td>
						</tr>
						<tr>
							<td height="30" align="center" valign="middle">
								输入新密码：
								<input name="new_password" id="new_password" type="password"
									class="zcinput" />
							</td>
						</tr>
						<tr>
							<td height="30" align="center" valign="middle">
								确认新密码：
								<input name="renew_password" id="renew_password" type="password"
									class="zcinput" />
							</td>
						</tr>
						<tr>
							<td height="30" align="center" valign="middle">
								<span class="ac"> <input name="button2" type="submit"
										class="butblue" id="button2" value=" 提 交 " /> </span>
							</td>
						</tr>
					</table>
				</form>
			</div>
		</div>
		<!--友情链接-->
		<jsp:include page="../bottom.jsp" />
	</body>
</html>